﻿#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<stdlib.h>

//main66：指针的解释
int main66()
{
	int a = 10;
	a = 20;
	int* p;
	p = &a;
	*p = 30;
	printf("1.输出通过指针修改后的a的值：%d\n", a);//30
	printf("2.此时*p指向内存空间a的值为：%d\n", *p);//30

	int b = 100;
	p = &b;
	*p = 200;
	printf("3.让指针p指向b的地址值，然后改变b，则b为：%d\n", b);//200
	printf("4.则*p指向的内存空间b的值为：%d\n", *p);//200

	system("pause");
	return EXIT_SUCCESS;
}